<%
/*
*       Author: daho
*
*
*       update: 
*       
*
*    check user level if there're no level for him it'll kick back to mainmenu
*/
//               System.out.println(">>>>> Authorization ======");
              
               String  uLevel =null;
               
               try{
                    com.softplus.carrefour.hd.bltier.admin.IUserLevelViewer      
                            ulViwer  = (com.softplus.carrefour.hd.bltier.admin.UserLevelManage) 
                                        com.softplus.carrefour.hd.CFHDSystem.getControlClass("USER_LEVEL");
                            uLevel   = ulViwer.getUserLevelByUserID(userVO.getUserId()); // userVO get from spUserVOInclude.jsp or session.
                    }catch(NullPointerException ne){
                         ne.printStackTrace();

                    }
                    
                    if(uLevel==null){
                        out.println("<script src=\"../script/Alert.js\" type=\"text/javascript\"></script>");
                        out.println("<script type=\"text/javascript\">");
                        out.println("if(showOInfoDialog(\"Authentication Failed!\", \"You might not be authorized in E-Helpdesk System. Please Contact Administrator.\\n click OK  to continue.\", \"OK\" )){");
                        out.println("  parent.location =parent.location; ");
                        out.println(" } \n </script>");                     
                    }
//            System.out.println("==== Authorization <<<<<");

%>
